﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SetUserRoles.aspx.cs" Inherits="Hxsoft.AppV1.Admin.UserManage.SetUserRoles" %>

<%@ Register Src="~/Controls/ListBox_FootBox.ascx" TagName="ListBox_FootBox" TagPrefix="uc" %>
<%@ Register Src="~/Controls/ListBox_HeadBox.ascx" TagName="ListBox_HeadBox" TagPrefix="uc" %>
<%@ Register Src="~/Controls/RoleSelector.ascx" TagName="RoleSelector" TagPrefix="uc" %>
<%@ Register Src="Controls/ModifyNavigation.ascx" TagName="ModifyNavigation" TagPrefix="uc" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
	<title>[修改]</title>
	<script type="text/javascript" src="<%# ResolveUrl("~/J/List.js") %>"></script>
</head>
<body onunload="ReloadOpener();">
	<form id="form1" runat="server">
		<asp:ScriptManager ID="ScriptManager1" runat="server">
		</asp:ScriptManager>
		<div id="MainBody" runat="server" class="FormBody">
			<div class="FormTablesBox">
				<uc:ModifyNavigation ID="ModifyNavigation1" CurrentKey="RolesSetting" UserName="<%# Identifier %>" runat="server" />
				<asp:UpdatePanel ID="UpdatePanel1" runat="server">
					<ContentTemplate>




			<uc:ListBox_HeadBox ID="ListBox_HeadBox1" runat="server" />
			<div class="ListBoxItem">
				<table id="ToolBarBox" cellspacing="0" width="100%">
					<tr>
						<td class="LevelCompart" align="right">
						</td>
					</tr>
					<tr>
						<td id="Foot">
							用户 [<%# Identifier %>] 隶属于以下角色：</td>
					</tr>
				</table>
			</div>
			<div class="ListBoxItem">
				<asp:UpdatePanel ID="UpdatePanel2" runat="server">
					<ContentTemplate>
				<table id="ListBox" cellspacing="0" width="100%">
					<tbody>
						<tr>
							<td class="LevelCompart">
								<asp:Repeater ID="List" runat="server" OnItemCommand="List_ItemCommand" OnItemDataBound="List_ItemDataBound">
									<HeaderTemplate>
										<table id="List" cellspacing="1" cellpadding="2" width="100%">
											<tr id="Title">
												<th width="100">
													角色名</th>
												<th>
													角色描述</th>
												<th width="100">
													所属站点</th>
												<th width="40">
													删除</th>
											</tr>
									</HeaderTemplate>
									<ItemTemplate>
										<tr class="mouseout" align="center" onmouseover="listItem_mouseOver(this);" onmouseout="listItem_mouseOut(this);">
											<td>
												<%# Eval("RoleName") %>
											</td>
											<td>
												<%# Eval("Description") %>
											</td>
											<td>
												<%# GetListItemSiteName(Container) %>
											</td>
											<td>
												<asp:LinkButton ID="LbtDelete" CommandName="Delete" OnClientClick="return confirm(&quot;是否移除该角色？&quot;);" runat="server">移除</asp:LinkButton>
												<asp:HiddenField ID="Identifier_RoleId" Value='<%# Eval("RoleId") %>' runat="server" />
											</td>
										</tr>
									</ItemTemplate>
									<FooterTemplate>
										</table>
									</FooterTemplate>
								</asp:Repeater>
							</td>
						</tr>
						<tr>
							<td id="Td1" style="padding:20px;">
								<asp:LinkButton ID="CtrShowRoleSelectorButton" OnClick="CtrShowRoleSelectorButton_Click" runat="server">
									<asp:Image ID="ImgHeader" runat="server" ImageUrl="~/I/expand.jpg" AlternateText="点击这里添加用户隶属的角色" />
									点击这里添加用户隶属的角色
								</asp:LinkButton>
								<div style="overflow:hidden; border:1px solid #ccc;">
									<uc:RoleSelector ID="RoleSelector" Visible="false" runat="server" OnSelectFinish="RoleSelector_SelectFinish" />
								</div>
							</td>
						</tr>
					</tbody>
				</table>
					</ContentTemplate>
				</asp:UpdatePanel>
			</div>
			<uc:ListBox_FootBox ID="ListBox_FootBox1" runat="server" />




					</ContentTemplate>
				</asp:UpdatePanel>
			</div>
			<div class="ValidationSummaryBox">
				<asp:ValidationSummary id="VSForm" runat="server"></asp:ValidationSummary>
			</div>
			<div class="ToolBar"></div>
		</div>
		<Hxctr:MessageBox ID="MessageBox1" runat="server" />
		<Hxctr:UpdateProgress ID="UpdateProgress1" runat="server" />
	</form>
</body>
</html>